package com.hpeu_01.CarApp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
//抽象汽车类 汽车
public abstract class Automobile {
    String carNumber;//车牌号
    String brand;//品牌
    int dailyRent;//日租金

    public Automobile(String carNumber, String brand, int dailyRent) {
        this.carNumber = carNumber;
        this.brand = brand;
        this.dailyRent = dailyRent;
    }

    public abstract float rent(int days);//抽象租金方法
}
